#pragma once
#include "epicure.h"

typedef CARD CTX, *LPCTX;

typedef struct Item
{
	LPCTX content;
	Item* next;
} HEAD, *LPITEM, *LPHEAD;

int CardlistCount(LPHEAD head);
void CardlistAdd(LPHEAD& head, CTX item);
void CardlistRemove(LPHEAD& head, int index);
void CardlistInsert(LPHEAD& head, int index, CTX item);
LPITEM CardlistAt(LPHEAD head, int index);
LPITEM CardlistLastitem(LPHEAD head);
VOID CardlistClear(LPHEAD& head);